package com.rabbitmq.demo.service;

import com.rabbitmq.demo.pojo.Order;

import java.util.List;

public interface OrderService {

    Order save(Order order);

    Order getById(Long id);

    void update(Order order);

    List<Order> getListByUserIdAndStateOrderByIdDesc(Long userId, int state);
}
